import request from '@/utils/request'

// 查询分佣配置列表
export function listTcfgcom(query) {
  return request({
    url: '/system/tcfgcom/list',
    method: 'get',
    params: query
  })
}

// 查询分佣配置详细
export function getTcfgcom(id) {
  return request({
    url: '/system/tcfgcom/info/' + id,
    method: 'get'
  })
}

// 新增分佣配置
export function addTcfgcom(data) {
  return request({
    url: '/system/tcfgcom/add',
    method: 'post',
    data: data
  })
}

// 修改分佣配置
export function updateTcfgcom(data) {
  return request({
    url: '/system/tcfgcom/update',
    method: 'put',
    data: data
  })
}

// 删除分佣配置
export function delTcfgcom(id) {
  return request({
    url: '/system/tcfgcom/delete/' + id,
    method: 'delete'
  })
}
